package com.exam.mapper;

import com.exam.po.PaperManage;
import com.exam.po.PaperManageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PaperManageMapper {
    int countByExample(PaperManageExample example);

    int deleteByExample(PaperManageExample example);

    /**
     * 添加题型
     * @param record
     * @return
     */
    int insert(PaperManage record);

    int insertSelective(PaperManage record);


    List<PaperManage> selectByExample(PaperManageExample example);

    int updateByExampleSelective(@Param("record") PaperManage record, @Param("example") PaperManageExample example);

    int updateByExample(@Param("record") PaperManage record, @Param("example") PaperManageExample example);

    /*
     * @Author mahaoqi
     * @Description 插入多条数据
     * @Date 2021/1/13 10:49
     * @Param [list]
     * @return int
     **/
    int insertBatch(List<PaperManage> list);

    /**
     * 查找所有
     * @return
     */
    List<PaperManage> selectAll();

    /**
     * 根据ID查找
     * @param paperId
     * @return
     */
    List<PaperManage> selectById(Integer paperId);


}